package com.pro.baoyi.api.logWarn.model.db;

import com.pro.common.api.CommonConst;
import com.pro.common.api.model.BaseModel;
import com.pro.common.api.model.auth.IOpenConfigClass;
import com.pro.framework.javatodb.annotation.JTDField;
import com.pro.framework.javatodb.annotation.JTDTable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.sql.Time;
import java.time.LocalDateTime;
import java.time.LocalTime;

@Data
@Schema(description = "日志文件大小警告配置多重条件表")
@JTDTable(entityId = 120003, module = CommonConst.Modules.admin, sequences = {
        "KEY `idx_configId` (`config_id`)",
})
public class LogFileSizeWarningConfigMultiple extends BaseModel implements IOpenConfigClass {

    @Schema(description = "配置ID")
    private Long configId;

    @Schema(description = "起始值")
    private LocalTime startTime;

    @Schema(description = "结束值")
    private LocalTime endTime;

    @Schema(description = "倍数")
    @JTDField(defaultValue = "1")
    private BigDecimal multiple;


}
